package com.funtl.apache.dubbo.item.service.impl;

import com.funtl.apache.dubbo.item.dao.TbOrderItemDao;
import com.funtl.apache.dubbo.provider.item.api.domain.TbOrderItem;
import com.funtl.apache.dubbo.provider.item.api.service.api.ItemService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(version = "1.0.0")
public class ItemServiceImpl implements ItemService {
    @Autowired
    private TbOrderItemDao tbOrderItemDao;

    @Transactional
    @Override
    public void insert(TbOrderItem tbOrderItem) {
        tbOrderItemDao.insert(tbOrderItem);
    }
}
